package cn.schoolwow.starter.quickdao;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@ConfigurationProperties(prefix = "quickdao")
public class QuickDAOProperties {
    /**指定扫描包名*/
    private List<String> packageNameList;

    /**扫描实体类*/
    private List<Class> entityList;

    /**忽略包名*/
    private List<String> ignorePackageName;

    /**忽略实体类*/
    private List<Class> ignoreClass;

    /**是否开启外键约束*/
    private boolean foreignKey = false;

    /**是否自动建表*/
    private boolean autoCreateTable = true;

    /**是否自动新增属性*/
    private boolean autoCreateProperty = true;

    /**指定全局数据库表引擎*/
    private String engine;

    /**指定全局数据库表编码格式*/
    private String charset;

    public List<String> getPackageNameList() {
        return packageNameList;
    }

    public void setPackageNameList(List<String> packageNameList) {
        this.packageNameList = packageNameList;
    }

    public List<Class> getEntityList() {
        return entityList;
    }

    public void setEntityList(List<Class> entityList) {
        this.entityList = entityList;
    }

    public List<String> getIgnorePackageName() {
        return ignorePackageName;
    }

    public void setIgnorePackageName(List<String> ignorePackageName) {
        this.ignorePackageName = ignorePackageName;
    }

    public List<Class> getIgnoreClass() {
        return ignoreClass;
    }

    public void setIgnoreClass(List<Class> ignoreClass) {
        this.ignoreClass = ignoreClass;
    }

    public boolean isForeignKey() {
        return foreignKey;
    }

    public void setForeignKey(boolean foreignKey) {
        this.foreignKey = foreignKey;
    }

    public boolean isAutoCreateTable() {
        return autoCreateTable;
    }

    public void setAutoCreateTable(boolean autoCreateTable) {
        this.autoCreateTable = autoCreateTable;
    }

    public boolean isAutoCreateProperty() {
        return autoCreateProperty;
    }

    public void setAutoCreateProperty(boolean autoCreateProperty) {
        this.autoCreateProperty = autoCreateProperty;
    }

    public String getEngine() {
        return engine;
    }

    public void setEngine(String engine) {
        this.engine = engine;
    }

    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }
}
